package day1;
import java.util.Scanner;
public class t4 {

	  public static void main(String[] args) {
		  Scanner read = new Scanner(System.in); 
          int n = read.nextInt(); 
          for( int  i =1; i <= n; i++) { 
          for( int  k= n-i ;k > 0; k--) { 
      System.out.print(" "); 
           } String str = ""; 
           for ( int j = 1; j < 2 * i; j++)
         { if( j==1 || j==2*i-1)
       { str += "*"; } 
       else
       { str += " "; } 
} 
       System.out.println(str); 
}
           for( int i = n-1; i>0 ; i--) 
         { for( int k =n-i; k> 0; k--) {

       System.out.print(" ");
} 
        String str = "";
         for ( int j = 1; j < 2 * i; j++){

          if( j==1 || j==2*i-1){

        str += "*";
} 
        else { str += " "; }
} 
        System.out.println(str);
} 
        read.close(); 
	}
}

